<?php

session_start();
$_SESSION['user'] = 8;
$_SESSION['email'] = "adnhack@gmail.com";
$_SESSION['account'] = 1;
$_SESSION['name'] = "Antonio";
$_SESSION['lname'] = "Aceves";
$_SESSION['school_id'] = "12345";
$_SESSION['grade'] = "5";
$_SESSION['grade_room'] = "A";

header("Location: /b/main.php");
exit;

if(array_key_exists("name", $_SESSION) && array_key_exists("lname", $_SESSION)){
	$signstatus = '<a href="/logout.php" class="top-menu" style="color:#999">SIGN OUT</a>';
} else {
	$signstatus = '<a href="/login.php" class="top-menu" style="color:#999">SIGN IN</a>';
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PIE EDUCATION | ONLINE EDUCATION NETWORK</title>
<link rel="stylesheet" type="text/css" href="/css/style-student.css" />
<script type="text/javascript" src="/js/index.js"></script>
<?php

if(array_key_exists("user", $_SESSION)){
echo <<<EOD
<script language="Javascript1.2">
<!--
setTimeout('location.href="/logout.php?expire=1"',600000);
// -->
</script>
EOD;
}

?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35230372-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#000000"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="350" height="30">&nbsp;</td>
        <td align="right" valign="bottom"><a href="/common/about.php" class="top-menu" style="color:#999">THE BAKING OF PIE.EDU</a> <a href="/common/contact-us.php" class="top-menu" style="color:#999">CONTACT US</a> <a href="/common/jobs.php" class="top-menu" style="color:#999">JOBS</a> <?php echo $signstatus; ?></td>
      </tr>
	  <?php
	  if(array_key_exists("user", $_SESSION)){
      echo '<tr>
        <td>&nbsp;</td>
        <td align="right" valign="bottom"><a href="/profile/" class="login-menu">'.$_SESSION['name'].' '.$_SESSION['lname'].'</a> | <a href="/common/settings.php" class="login-menu">Change Settings</a> | <a href="/common/redirect.php" class="login-menu">Main Page</a> | <a href="/network/" class="login-menu">My Network</a></td>
      </tr>';
	  }
      ?>
    </table></td>
  </tr>
  <tr>
    <td height="30" style="background-image:url(images/top-bg-student.png); background-repeat:repeat-x">&nbsp;</td>
  </tr>
  <tr>
    <td height="550" align="center"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="550" valign="bottom" style="background-image:url(images/main-logo.png); background-repeat:no-repeat; background-position:center"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="400" align="center"><iframe width="560" height="315" src="http://www.youtube.com/embed/Yd38nicfKnU" frameborder="0" allowfullscreen></iframe></td>
            <td width="300"><form id="newaccount" name="newaccount" method="post" action="/common/create.php" onsubmit="return newAccountValidation();">
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><label for="name">Your name</label>
                    <input name="fname" type="text" class="form" id="fname" tabindex="1" /></td>
                </tr>
                <tr>
                  <td><label for="lname">Your lastname</label>
                    <input name="lname" type="text" class="form" id="lname" tabindex="2" /></td>
                </tr>
                <tr>
                  <td><label for="email">Your email address</label>
                    <input name="email" type="text" class="form" id="email" tabindex="3" /></td>
                </tr>
                <tr>
                  <td><label for="type">Your account type</label>
                    <select name="type" class="form" id="type" tabindex="4">
                      <option value="1" selected="selected">I'm a student</option>
                      <option value="2">I'm a teacher</option>
                      <option value="3">I'm a developer</option>
                    </select></td>
                </tr>
                <tr>
                  <td align="center"><input name="send" type="submit" class="submit-center" id="send" value="Create Account" /></td>
                </tr>
                </table>
            </form></td>
          </tr>
          <tr>
            <td height="50" align="center"><a href="#" class="bigbutton blue" style="color:#FFF">Share PIE.EDU With Friends</a></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" style="background-image:url(images/bottom-bg.png); background-repeat:repeat-x">&nbsp;</td>
  </tr>
  <tr>
    <td height="300" align="center" bgcolor="#f5f5f5"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="font-family:Arial, Helvetica, sans-serif"><h1>THE BAKING OF PIE.EDU</h1>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">Once upon a time (don’t all great stories start this way?),  a new social media platform was born. Are those groans I hear? <em>Another</em> one? But wait, this one is  different. This one is specifically designed for teachers and learners of all  shapes and sizes. </p>
          <h2><strong>It’s name is PIE.EDU</strong></h2>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">PIE.EDU is learning platform, social media site, and so much  more. Do you need fundraising help for your education-related project or  organization? We can help.</p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">Are you curious about new subjects like business planning, computer  training, media marketing, mobile advertising, and more, but don’t want to  spend tons of dollars on classes? We’ve got something for you. Instead of  drowning in Google or Bing to learn how something works or the best way to  approach a new concept, PIE.EDU brings online courses right to you.</p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">Does your organization or business have employee training  needs? We can help get those programs online. </p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">Do you have an education-related product or service that you  need to market? We can provide you with the tools and resources to do just  that. </p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">Are you looking for an education related job? Check out our  Jobs Board for free.</p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">PIE.EDU is a complex learning platform that benefits  learners, teachers, corporations, and non-profits in a variety of ways. Our  forums can put you in contact with potential employers, consumers, and funders.</p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">There is no risk to try us out!</p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">For more information and updates on where this exciting  resource is heading, you can sign up for our free newsletter, like us on  Facebook, and follow us on Twitter. Share PIE.EDU with your friends and family,  you will be happy you did. </p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px">We are always open to suggestions and feedback. Please let  us know how we can improve PIE.EDU for your learning pleasure. </p>
          <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px"><strong>Happy Learning!</strong></p></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" align="center" style="background-image:url(images/top-bg.png); background-repeat:repeat-x">&nbsp;</td>
  </tr>
  <tr>
    <td height="50" align="center" style="color:#666; font-family:Arial, Helvetica, sans-serif">PIE.EDU All Copyrights Reserved 2012<br />
      <a href="/common/privacy.php" class="bottom-menu" style="color:#999">Privacy Policy</a> | <a href="/common/terms.php" class="bottom-menu" style="color:#999">Terms of Use</a> | <a href="/help/main.php" class="bottom-menu" style="color:#999">Help Center</a> | <a href="/common/jobs.php" class="bottom-menu" style="color:#999">Jobs</a></td>
  </tr>
</table>
</body>
</html>